import 'package:json_annotation/json_annotation.dart';
import 'package:xindong/models/chat_message/xindong_custom_message.dart';

part 'xindong_custom_gift_message.g.dart';

@JsonSerializable()
class XinDongCustomGiftMessage extends XinDongCustomMessage {
  @override
  dynamic type; // CustomMessageType GroupMessageType
  dynamic user_name;
  dynamic gift_name;
  dynamic gift_preview;
  dynamic gift_num;

  XinDongCustomGiftMessage({this.type});

  factory XinDongCustomGiftMessage.fromJson(Map<String, dynamic> json) => _$XinDongCustomGiftMessageFromJson(json);

  Map<String, dynamic> toJson() => _$XinDongCustomGiftMessageToJson(this);
}
